<bc:ExVIP x:Class="SLS.Presentation.VIPGTAR"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:bc="clr-namespace:SLS.Base;assembly=CLSBase"
           xmlns:exc="clr-namespace:SLS.Controls;assembly=CLSControls" 
           xmlns:nvp="clr-namespace:Stema.Controls;assembly=NavigationPane"
           xmlns:my="clr-namespace:SLS.Presentation"
           xmlns:cv="clr-namespace:SLS.ExClassLib.Converters;assembly=Converters"
           x:Name="Container" 
           ToolTip="{Binding DisplayName}"
           xmlns:CinchV2="clr-namespace:Cinch;assembly=Cinch.WPF"
           xmlns:meffed="http:\\www.codeplex.com\MEFedMVVM"
           meffed:ViewModelLocator.ViewModel="VIPGTARViewModel"
        >
    <bc:ExVIP.Resources>
       <DataTemplate DataType="{x:Type CinchV2:WorkspaceData}">
         <AdornerDecorator>
                <Border HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch"
                        CinchV2:NavProps.ViewCreator="{Binding}" />
          </AdornerDecorator>
        </DataTemplate>
       <CollectionViewSource x:Key="vwBaseTable" Source="{Binding Path=ViewDataSet.SetUI.GTAR}" />
       <CollectionViewSource x:Key="vwBaseQueryCond" Source="{Binding Path=ViewDataSet.SetUQ.GTARQueryCond}" />
    </bc:ExVIP.Resources>
  <DockPanel VerticalAlignment="Stretch"
               HorizontalAlignment="Stretch"
               LastChildFill="True">
        <Expander DockPanel.Dock="Right"
                  ExpandDirection="Right"
                  Width="Auto"
                  >
            <exc:ExTabControl x:Name="DocumentsKEY"
                              ItemsSource="{Binding DocumentsKey}"
                              CinchV2:NavProps.ShouldHideHostWhenNoItems="true"
                              TabStripPlacement="Top"
                              ItemContainerStyle="{StaticResource TabItemStyleTopTabs}"
                              Style="{StaticResource TabControlStyleTopTabs}"
                              IsSynchronizedWithCurrentItem="True"
                              DisplayMemberPath="DisplayText"></exc:ExTabControl>
        </Expander> 
   <exc:ExTabControl x:Name="DocumentsList"
                              ItemsSource="{Binding Documents}"
                              CinchV2:NavProps.ShouldHideHostWhenNoItems="true"
                              TabStripPlacement="Left"                                  
                              ItemContainerStyle="{StaticResource TabItemStyleSideTabs}"
                              Style="{StaticResource TabControlStyleSideTabs}"
                              IsSynchronizedWithCurrentItem="True"
                              DisplayMemberPath="DisplayText">
                </exc:ExTabControl>
    </DockPanel>
</bc:ExVIP>
